AudioPlayer
AudioPlayer Component
This component is an audio player that displays audio content with details and resources.
Props
Prop | Type | Description |
---|---|---|
content | ContentData from @/thor/model | The audio content data to be displayed |
Example Usage
import { AudioPlayer } from '@site/src/components/AudioPlayer';
import { ContentData } from '@/thor/model';
const audioContent: ContentData = {
title: 'My Audio',
contentUrl: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3',
authorName: 'Valkyr Labs',
createdDate: '2024-01-01T00:00:00.000Z',
releaseDate: '2024-01-01T00:00:00.000Z',
category: 'Music',
contentType: 'audio/mp3'
};
<AudioPlayer content={audioContent} />